import { Component, OnInit } from '@angular/core';
import { ViewReadPageService } from "./view-read-page.service";

@Component({
  selector: 'app-view-read-page',
  templateUrl: './view-read-page.component.html',
  styleUrls: ['./view-read-page.component.scss'],
  providers: [ViewReadPageService]
})
export class ViewReadPageComponent implements OnInit {
  // 阅读须知摘要内容
  public sContent: any;

  constructor(
    public viewReadPageService: ViewReadPageService
  ) { }

  ngOnInit() {
    this.getSummary();
  }
  // 获取阅读须知摘要
  getSummary() {
    let that = this;
    this.viewReadPageService.getSummary().subscribe(data => {
      that.sContent = data.sContent;
    })
  }
}
